<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>XenC: include/kenlm/util/double-conversion/diy-fp.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XenC
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Open-source tool for data selection in NLP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5417fc49d29c4cfca6bc3f52c9c7deba.html">kenlm</a></li><li class="navelem"><a class="el" href="dir_9ec25de6763e2dc47109730f881b7e3e.html">util</a></li><li class="navelem"><a class="el" href="dir_5fd0dc67f55ed56e6f450361f3921d3b.html">double-conversion</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">diy-fp.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="diy-fp_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// Copyright 2010 the V8 project authors. All rights reserved.</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions are</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// met:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//     * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//       notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//     * Redistributions in binary form must reproduce the above</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//       copyright notice, this list of conditions and the following</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//       disclaimer in the documentation and/or other materials provided</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//       with the distribution.</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//     * Neither the name of Google Inc. nor the names of its</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//       contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//       from this software without specific prior written permission.</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#ifndef DOUBLE_CONVERSION_DIY_FP_H_</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#define DOUBLE_CONVERSION_DIY_FP_H_</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="utils_8h.html">utils.h</a>&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacedouble__conversion.html">double_conversion</a> {</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">// This &quot;Do It Yourself Floating Point&quot; class implements a floating-point number</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">// with a uint64 significand and an int exponent. Normalized DiyFp numbers will</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">// have the most significant bit of the significand set.</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">// Multiplication and Subtraction do not normalize their results.</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">// DiyFp are not designed to contain special doubles (NaN and Infinity).</span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html">   40</a></span>&#160;<span class="keyword">class </span><a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a> {</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#ae34c561a7915ffd25adaf62f4e673289">   42</a></span>&#160;  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#ae34c561a7915ffd25adaf62f4e673289">kSignificandSize</a> = 64;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#aa56725b762086483822ebed15847e8d4">   44</a></span>&#160;  <a class="code" href="classdouble__conversion_1_1_diy_fp.html#aa56725b762086483822ebed15847e8d4">DiyFp</a>() : f_(0), e_(0) {}</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#aa84d981000208e4133c27cdd5524cb6a">   45</a></span>&#160;  <a class="code" href="classdouble__conversion_1_1_diy_fp.html#aa84d981000208e4133c27cdd5524cb6a">DiyFp</a>(uint64_t <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a3349d590fd9df99612cbc80139fedc58">f</a>, <span class="keywordtype">int</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a828bcae8911450e00323fd29f8846d75">e</a>) : f_(f), e_(e) {}</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  <span class="comment">// this = this - other.</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <span class="comment">// The exponents of both numbers must be the same and the significand of this</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  <span class="comment">// must be bigger than the significand of other.</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <span class="comment">// The result will not be normalized.</span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#a133bd86228b8b97d2f39d8c8380820f6">   51</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a133bd86228b8b97d2f39d8c8380820f6">Subtract</a>(<span class="keyword">const</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a>&amp; other) {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <a class="code" href="utils_8h.html#a1dfb2cb545fa51edb2760047aa4ce45f">ASSERT</a>(e_ == other.e_);</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <a class="code" href="utils_8h.html#a1dfb2cb545fa51edb2760047aa4ce45f">ASSERT</a>(f_ &gt;= other.f_);</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    f_ -= other.f_;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  }</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="comment">// Returns a - b.</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="comment">// The exponents of both numbers must be the same and this must be bigger</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="comment">// than other. The result will not be normalized.</span></div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#a10d24a66872862b429be4e0e190fae45">   60</a></span>&#160;  <span class="keyword">static</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a10d24a66872862b429be4e0e190fae45">Minus</a>(<span class="keyword">const</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a>&amp; a, <span class="keyword">const</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a>&amp; b) {</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a> result = a;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    result.<a class="code" href="classdouble__conversion_1_1_diy_fp.html#a133bd86228b8b97d2f39d8c8380820f6">Subtract</a>(b);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  }</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  <span class="comment">// this = this * other.</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#aa7f7afb43cc7596d0ca6e9b3a88da9d0">Multiply</a>(<span class="keyword">const</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a>&amp; other);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  <span class="comment">// returns a * b;</span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#aee3c68857db3d3ef28513b9741319225">   71</a></span>&#160;  <span class="keyword">static</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#aee3c68857db3d3ef28513b9741319225">Times</a>(<span class="keyword">const</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a>&amp; a, <span class="keyword">const</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a>&amp; b) {</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a> result = a;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    result.<a class="code" href="classdouble__conversion_1_1_diy_fp.html#aa7f7afb43cc7596d0ca6e9b3a88da9d0">Multiply</a>(b);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  }</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#a4fbfaf1d1b9410c859fd39df80c36078">   77</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a4fbfaf1d1b9410c859fd39df80c36078">Normalize</a>() {</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <a class="code" href="utils_8h.html#a1dfb2cb545fa51edb2760047aa4ce45f">ASSERT</a>(f_ != 0);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    uint64_t <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a3349d590fd9df99612cbc80139fedc58">f</a> = f_;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a828bcae8911450e00323fd29f8846d75">e</a> = e_;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="comment">// This method is mainly called for normalizing boundaries. In general</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="comment">// boundaries need to be shifted by 10 bits. We thus optimize for this case.</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keyword">const</span> uint64_t k10MSBits = <a class="code" href="utils_8h.html#af60c14e9c588537ba3fd925be39e29cd">UINT64_2PART_C</a>(0xFFC00000, 00000000);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordflow">while</span> ((f &amp; k10MSBits) == 0) {</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;      f &lt;&lt;= 10;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;      e -= 10;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    }</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordflow">while</span> ((f &amp; kUint64MSB) == 0) {</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;      f &lt;&lt;= 1;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;      e--;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    }</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    f_ = <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a3349d590fd9df99612cbc80139fedc58">f</a>;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    e_ = <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a828bcae8911450e00323fd29f8846d75">e</a>;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  }</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#ace02b01d4d5ddb4c60e579ea557955e7">   97</a></span>&#160;  <span class="keyword">static</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#ace02b01d4d5ddb4c60e579ea557955e7">Normalize</a>(<span class="keyword">const</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a>&amp; a) {</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <a class="code" href="classdouble__conversion_1_1_diy_fp.html">DiyFp</a> result = a;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    result.<a class="code" href="classdouble__conversion_1_1_diy_fp.html#a4fbfaf1d1b9410c859fd39df80c36078">Normalize</a>();</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  }</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#a3349d590fd9df99612cbc80139fedc58">  103</a></span>&#160;  uint64_t <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a3349d590fd9df99612cbc80139fedc58">f</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> f_; }</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#a828bcae8911450e00323fd29f8846d75">  104</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a828bcae8911450e00323fd29f8846d75">e</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> e_; }</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#a84282d3c5634034954c327f92d65a5fb">  106</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a84282d3c5634034954c327f92d65a5fb">set_f</a>(uint64_t new_value) { f_ = new_value; }</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classdouble__conversion_1_1_diy_fp.html#a41dcddbfa08269666b7f58c1fdcdb01c">  107</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classdouble__conversion_1_1_diy_fp.html#a41dcddbfa08269666b7f58c1fdcdb01c">set_e</a>(<span class="keywordtype">int</span> new_value) { e_ = new_value; }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <span class="keyword">static</span> <span class="keyword">const</span> uint64_t kUint64MSB = <a class="code" href="utils_8h.html#af60c14e9c588537ba3fd925be39e29cd">UINT64_2PART_C</a>(0x80000000, 00000000);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  uint64_t f_;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <span class="keywordtype">int</span> e_;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;};</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;}  <span class="comment">// namespace double_conversion</span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">#endif  // DOUBLE_CONVERSION_DIY_FP_H_</span></div><div class="ttc" id="utils_8h_html_a1dfb2cb545fa51edb2760047aa4ce45f"><div class="ttname"><a href="utils_8h.html#a1dfb2cb545fa51edb2760047aa4ce45f">ASSERT</a></div><div class="ttdeci">#define ASSERT(condition)        </div><div class="ttdef"><b>Definition:</b> utils.h:36</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_a3349d590fd9df99612cbc80139fedc58"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#a3349d590fd9df99612cbc80139fedc58">double_conversion::DiyFp::f</a></div><div class="ttdeci">uint64_t f() const </div><div class="ttdef"><b>Definition:</b> diy-fp.h:103</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_a828bcae8911450e00323fd29f8846d75"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#a828bcae8911450e00323fd29f8846d75">double_conversion::DiyFp::e</a></div><div class="ttdeci">int e() const </div><div class="ttdef"><b>Definition:</b> diy-fp.h:104</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html">double_conversion::DiyFp</a></div><div class="ttdef"><b>Definition:</b> diy-fp.h:40</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_a4fbfaf1d1b9410c859fd39df80c36078"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#a4fbfaf1d1b9410c859fd39df80c36078">double_conversion::DiyFp::Normalize</a></div><div class="ttdeci">void Normalize()</div><div class="ttdef"><b>Definition:</b> diy-fp.h:77</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_a41dcddbfa08269666b7f58c1fdcdb01c"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#a41dcddbfa08269666b7f58c1fdcdb01c">double_conversion::DiyFp::set_e</a></div><div class="ttdeci">void set_e(int new_value)</div><div class="ttdef"><b>Definition:</b> diy-fp.h:107</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_aa7f7afb43cc7596d0ca6e9b3a88da9d0"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#aa7f7afb43cc7596d0ca6e9b3a88da9d0">double_conversion::DiyFp::Multiply</a></div><div class="ttdeci">void Multiply(const DiyFp &amp;other)</div></div>
<div class="ttc" id="utils_8h_html_af60c14e9c588537ba3fd925be39e29cd"><div class="ttname"><a href="utils_8h.html#af60c14e9c588537ba3fd925be39e29cd">UINT64_2PART_C</a></div><div class="ttdeci">#define UINT64_2PART_C(a, b)</div><div class="ttdef"><b>Definition:</b> utils.h:96</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_a133bd86228b8b97d2f39d8c8380820f6"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#a133bd86228b8b97d2f39d8c8380820f6">double_conversion::DiyFp::Subtract</a></div><div class="ttdeci">void Subtract(const DiyFp &amp;other)</div><div class="ttdef"><b>Definition:</b> diy-fp.h:51</div></div>
<div class="ttc" id="utils_8h_html"><div class="ttname"><a href="utils_8h.html">utils.h</a></div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_a10d24a66872862b429be4e0e190fae45"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#a10d24a66872862b429be4e0e190fae45">double_conversion::DiyFp::Minus</a></div><div class="ttdeci">static DiyFp Minus(const DiyFp &amp;a, const DiyFp &amp;b)</div><div class="ttdef"><b>Definition:</b> diy-fp.h:60</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_aa56725b762086483822ebed15847e8d4"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#aa56725b762086483822ebed15847e8d4">double_conversion::DiyFp::DiyFp</a></div><div class="ttdeci">DiyFp()</div><div class="ttdef"><b>Definition:</b> diy-fp.h:44</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_a84282d3c5634034954c327f92d65a5fb"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#a84282d3c5634034954c327f92d65a5fb">double_conversion::DiyFp::set_f</a></div><div class="ttdeci">void set_f(uint64_t new_value)</div><div class="ttdef"><b>Definition:</b> diy-fp.h:106</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_ace02b01d4d5ddb4c60e579ea557955e7"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#ace02b01d4d5ddb4c60e579ea557955e7">double_conversion::DiyFp::Normalize</a></div><div class="ttdeci">static DiyFp Normalize(const DiyFp &amp;a)</div><div class="ttdef"><b>Definition:</b> diy-fp.h:97</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_aa84d981000208e4133c27cdd5524cb6a"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#aa84d981000208e4133c27cdd5524cb6a">double_conversion::DiyFp::DiyFp</a></div><div class="ttdeci">DiyFp(uint64_t f, int e)</div><div class="ttdef"><b>Definition:</b> diy-fp.h:45</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_ae34c561a7915ffd25adaf62f4e673289"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#ae34c561a7915ffd25adaf62f4e673289">double_conversion::DiyFp::kSignificandSize</a></div><div class="ttdeci">static const int kSignificandSize</div><div class="ttdef"><b>Definition:</b> diy-fp.h:42</div></div>
<div class="ttc" id="namespacedouble__conversion_html"><div class="ttname"><a href="namespacedouble__conversion.html">double_conversion</a></div><div class="ttdef"><b>Definition:</b> bignum-dtoa.h:33</div></div>
<div class="ttc" id="classdouble__conversion_1_1_diy_fp_html_aee3c68857db3d3ef28513b9741319225"><div class="ttname"><a href="classdouble__conversion_1_1_diy_fp.html#aee3c68857db3d3ef28513b9741319225">double_conversion::DiyFp::Times</a></div><div class="ttdeci">static DiyFp Times(const DiyFp &amp;a, const DiyFp &amp;b)</div><div class="ttdef"><b>Definition:</b> diy-fp.h:71</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 18 2016 17:22:37 for XenC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
